﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using CustomUIControls;

namespace sihamids
{
    public partial class Form1 : Form
    {
        TaskbarNotifier taskbarNotifier;
        public Form1()
        {
            InitializeComponent();
            //add this to the constructor
            taskbarNotifier = new TaskbarNotifier();
            taskbarNotifier.SetBackgroundBitmap(global::sihamids.Properties.Resources.skin,
                Color.FromArgb(255, 0, 255));
            taskbarNotifier.SetCloseBitmap(global::sihamids.Properties.Resources.close,
                Color.FromArgb(255, 0, 255), new Point(280, 57));
            taskbarNotifier.TitleRectangle = new Rectangle(150, 57, 125, 28);
            taskbarNotifier.ContentRectangle = new Rectangle(75, 92, 215, 55);
            taskbarNotifier.TitleClick += new EventHandler(TitleClick);
            taskbarNotifier.ContentClick += new EventHandler(ContentClick);
            taskbarNotifier.CloseClick += new EventHandler(CloseClick);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //add this to the constructor

            //taskbarNotifier3.EnableSelectionRectangle = checkBoxSelectionRectangle.Checked;
            //taskbarNotifier3.KeepVisibleOnMousOver = checkBoxKeepVisibleOnMouseOver.Checked;	// Added Rev 002
            //taskbarNotifier3.ReShowOnMouseOver = checkBoxReShowOnMouseOver.Checked;
            taskbarNotifier.Show("Notification", "sihma test one1 ", 500, 3000, 500);
        }


        void CloseClick(object sender, EventArgs e)
        {
            MessageBox.Show("Closed was Clicked");
        }

        void TitleClick(object sender, EventArgs e)
        {
            MessageBox.Show("Title was Clicked");
        }

        void ContentClick(object sender, EventArgs e)
        {
            MessageBox.Show("Content was Clicked");
        }
        
    }
}
